//
//  YCAlertView1.h
//  CustomByWindow
//
//  Created by tangkexiong on 16/1/4.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol YCAlertView1Delegate;
@class YCAlertView1ActionCell;

/**
 *  custom AlerView, the imitation of UIAlertView
 */
@interface YCAlertView1 : UIView

@property (nonatomic, copy, nullable) NSString *title;
@property (nonatomic, copy, nullable) NSString *message;
@property (nonatomic, retain, nullable) id<YCAlertView1Delegate> delegate;

- (nullable instancetype)initWithTitle:(nullable NSString *)title Message:(nullable NSString *)message Delegate:(nullable id<YCAlertView1Delegate>)delegate ButtonTitles:(nullable NSString *)btnTitle, ...NS_REQUIRES_NIL_TERMINATION;

- (void)show;

@end

#pragma mark - YCAlertView1Delegate

@protocol YCAlertView1Delegate <NSObject>

@optional
- (void)alertView1:(nonnull YCAlertView1 *)alertview didClickedAtIndex:(NSInteger)index;

@end

#pragma mark - YCAlertView1ActionCell

@interface YCAlertView1ActionCell: UICollectionViewCell

@property (strong, nonatomic, readonly, nonnull) UILabel *nameLabel;

@end

